package process_demo.review.other_locks.reentrantLock;

/**
 * @author haomin
 * @date 2022/09/20 17:42
 **/
public class Main2 {
    public static void main(String[] args) {
        Object o = new Object();
        synchronized (o){
            synchronized (o){
                System.out.println("synchronized 是可重入锁");
            }
        }
    }
}